package io;

import java.io.Serializable;
import java.util.Arrays;

public class People implements Serializable {
    private String name;
    private int age;
    private char sex;
    String[] ontherInfo;
    public People(String name, int age, char sex, String[] ontherInfo) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.ontherInfo = ontherInfo;
    }

    @Override
    public String toString() {
        return "People{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", ontherInfo=" + Arrays.toString(ontherInfo) +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String[] getOntherInfo() {
        return ontherInfo;
    }

    public void setOntherInfo(String[] ontherInfo) {
        this.ontherInfo = ontherInfo;
    }
}
